package com.hui.service;

import com.github.pagehelper.PageInfo;
import com.hui.dto.StudentInsertDTO;
import com.hui.dto.StudentPageDTO;
import com.hui.dto.StudentUpdateDTO;
import com.hui.entity.Student;
import com.hui.excel.StudentExcel;
import com.hui.vo.StudentVO;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/** @author 周航宇 */
public interface StudentService {
    int insert(StudentInsertDTO dto);
    Student select(Long id);
    List<StudentVO> list();
    PageInfo<Student> page(StudentPageDTO dto);
    int update(StudentUpdateDTO dto);
    int delete(Long id);
    int deleteBatch(List<Long> ids);

    List<StudentExcel> getExcelData();

    String uploadAvatar(MultipartFile newFile, Long id);
}
